﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TLD_Vision.filters;

namespace TLD_Vision.filters
{
    public class GenericSinglePixelAlgorithm : VisionAlgorithm
    {
        SinglePixelOperation op;

        public GenericSinglePixelAlgorithm(String name, SinglePixelOperation op)
            : base(name) 
        {
            this.op = op;
        }

        public override TLD_Vision.Image DoAlgorithm(TLD_Vision.Image src)
        {
            return src.ManipulatePixels(op);
        }
    }
}
